package com.company;

import java.io.IOException;
import javax.servlet.http.*;
import com.google.appengine.api.datastore.*;

@SuppressWarnings("serial")
public class datastore extends HttpServlet {
	
	private static final Object ID = null;
	private static final Object Email = null;
	private static final Object Password = null;
	Object Namecompany = null;
	Object username = null;
	
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		
		DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
		
		Entity company =new Entity("Company");
		company.setProperty("ID",ID);
		company.setProperty("NameCompany", Namecompany);
		company.setProperty("Email", Email);
		ds.put(company);
		
		
		Entity user =new Entity("User");
		user.setProperty("ID",ID);
		user.setProperty("Username", username);
		user.setProperty("Password", Password);
		user.setProperty("Email", Email);
		ds.put(user);
		
		
		resp.setContentType("text/plain");
		resp.getWriter().println("Hello, world");
	}
}
